package cn.com.common.model;

import java.io.Serializable;

/**
 * @author jiaming
 */
public class CacheValueModel implements Serializable {

    private static final long serialVersionUID = 1L;
    /**
     * 缓存值存放时间
     */
    private long createTime = System.currentTimeMillis();

    /**
     * 缓存的值
     */
    private Object value;

    /**
     * 缓存值过期时间
     */
    private int expire;

    public CacheValueModel() {
    }

    public CacheValueModel(Object value, int expire) {
        this.value = value;
        this.expire = expire;
    }

    public long getCreateTime() {
        return createTime;
    }

    public void setCreateTime(long createTime) {
        this.createTime = createTime;
    }

    public Object getValue() {
        return value;
    }

    public void setValue(Object value) {
        this.value = value;
    }

    public int getExpire() {
        return expire;
    }

    public void setExpire(int expire) {
        this.expire = expire;
    }

}
